/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-09-29
 * Time: 11:20
 */
import java.util.Scanner;

public class Main4{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int c = in.nextInt();
        MinuteConverter minConverter = new MinuteConverter();
        minConverter.toYearAndDay(c);
    }
}


class MinuteConverter {
    public void toYearAndDay(int minute){
        int minutes=minute/60/24;
        int s=minutes/365;
        int ss=minutes%365;
        System.out.println(minute+" minutes is approximately "+ s +" years and "+ss+" days.");
    }
}

